package com.example.service.impl;

import com.example.entity.VolunteerMessage;
import com.example.exception.LibraryManagerException;
import com.example.mapper.VolunteerMessageMapper;
import com.example.service.VolunteerMessageService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @author 紫煦桉
 */
@Service
public class VolunteerMessageServiceImpl extends AbstractSuperServiceImpl<VolunteerMessage> implements VolunteerMessageService {
    private VolunteerMessageMapper volunteerMessageMapper;
    @Autowired
    public void setVolunteerMessageMapper(VolunteerMessageMapper volunteerMessageMapper) {
        this.volunteerMessageMapper = volunteerMessageMapper;
    }

    @Override
    public VolunteerMessage login(VolunteerMessage volunteerMessage) throws LibraryManagerException {
        return volunteerMessageMapper.login(volunteerMessage);
    }
}
